

import  {useState} from 'react'
// 功能

//1 默认 密码选中
interface comTyle{
    getTopSelect?:any
    
}

function LoginTopNav(props:comTyle){
    
    
  let [topSelect,setTopSelect] =useState(1)
    const selectItem =(val:number)=>{
        setTopSelect(val)
        props.getTopSelect(val)
    }
    return (
        <div className="loginTopNav glb-flex1">
              <div className={topSelect==1?'topSlectActions':''} onClick={()=>selectItem(1)}>password

                  
              </div>
              <div className={topSelect==2?'topSlectActions':''}  onClick={()=>selectItem(2)}>phone</div>
        </div>
    )
}

export default LoginTopNav